package com.honglv.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Description:这是一个oss的参数类
 * date: 2023/09/15
 * author:王铭杰
 */
@Component
//这里关联了yml文件中的数值，为该类的参数赋值，对象中的属性已经被赋值,直接调用即可
@ConfigurationProperties(prefix = "sky.alioss")
@Data
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
